package com.example.demotest.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class OrderCreateDto {
    @NotNull(message = "商品ID不能为空")
    private Integer productId;

    private Integer quantity = 1;

    // 新增地址参数（前端传递）
    @NotBlank(message = "收货人姓名不能为空")
    private String consigneeName;

    @NotBlank(message = "联系电话不能为空")
    private String consigneePhone;

    @NotBlank(message = "省份不能为空")
    private String province;

    @NotBlank(message = "城市不能为空")
    private String city;

    @NotBlank(message = "区县不能为空")
    private String district;

    @NotBlank(message = "详细地址不能为空")
    private String detailAddress;

    private String postalCode;

    private List<String> images;
}